import { baseRequest } from "@/utils/request";
const request = (url, ...arg) => baseRequest(`/home/${url}`, ...arg);

export default {
  getRecommendList(data) {
    return request("recommend/list", data);
  },
  saveRecommend() {
    return request("recommend/save", data);
  },
  deleteRecommend(data) {
    return request("recommend/delete", data);
  },

  getAdvertList(data) {
    return request("advert/list", data);
  },
  saveAdvert(data) {
    return request("advert/save", data);
  },
  deleteAdvert(data) {
    return request("advert/delete", data);
  },
};
